package com.fwx.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fwx.common.core.domain.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@TableName("tb_sys_user")
public class SysUser extends BaseEntity {
    /*雪花算法生成id*/
    @TableId(type = IdType.ASSIGN_ID)
    private Long userId; //主键，不使用auto_increment

    private String userAccount;
    private String password;



    public static void main(String[] args) {
        SysUser sysUser = new SysUser();
        sysUser.setUserId(213455l);
        System.out.println(sysUser.getUserId());
    }

}
